package com.longan.gateway.service.Impl;

import cn.dev33.satoken.stp.StpInterface;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class StpInterfaceImpl implements StpInterface {
    @Override
    public List<String> getPermissionList(Object o, String s) {
        // 返回此 loginId 拥有的权限列表
        List<String> list = new ArrayList<>();
//        list.add("system");
        return list;
    }

    @Override
    public List<String> getRoleList(Object o, String s) {
//        System.out.println(s);
        System.out.println(o.toString());
        System.out.println("=======hhhhh==========");
        // 返回此 loginId 拥有的角色列表
        List<String> list = new ArrayList<>();
//        list.add("admin");
        return list;
    }
}
